<?	session_start(); 
	if(isset($_SESSION['id']) & isset($_SESSION['pass']))
	{
	require("koneksi.php");
	$query=mysql_query("select * from informasi order by kode_inf");
	
?>
<center>
<table border="1">
	<th colspan="6">
		Tampilan Informasi
	</th>
	<tr>
		<td>Kode</td>
		<td>Tgl Keluar</td>
		<td>Isi</td>
		<td>Author</td>
		<td colspan="2">Action</td>
	</tr>
	<?
		while ($row=mysql_fetch_row($query))
		{
			echo "<tr><td>$row[0]</td>
			<td>$row[1]</td>
			<td>$row[2]</td>
			<td>$row[3]</td>
			<td><a href=form_edit_inf.php?kode=$row[0]>Edit</a></td>
			<td><a href=del_inf.php?kode=$row[0]>Delete</a></td>
			</tr>";
		}?>
	<tr>
		<td colspan="6"><a href="form_add_inf.php">Tambah Informasi</a></td>
	</tr>
	<tr>
		<td colspan="6"><a href="menu_admin.php">Back to Menu Admin</a></td>
	</tr>
</table>
</center>

<? 
	}
	else
	echo "Silahkan <a href='index.php'>Login</a> dulu.";
?>